package day04;

import java.util.Random;
import java.util.Scanner;

//猜数字小游戏
public class Guessing {
    public static void main(String[] args) {
        Random random=new Random();
        int num =random.nextInt(100)+1;
        System.out.println("猜吧");
        Scanner scan= new Scanner(System.in);
        int guess;
        do {
            guess=scan.nextInt();
            if (guess>num){
                System.out.println("迟佳祺");
            }else if (guess<num){
                System.out.println("许传莹");

            }else {
                System.out.println("真晦气");
            }
        }while (guess!=num);

    }
}
